//
//  ActivityTableViewCell.m
//  豆瓣HW
//
//  Created by dllo on 15/11/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ActivityTableViewCell.h"

@implementation ActivityTableViewCell

- (void)dealloc
{
    [_imageV1 release];
    [_imageV2 release];
    [_imageV3 release];
    [_imageV4 release];
    [_imageV5 release];
    [_imageV6 release];
    [_lable1 release];
    [_lable2 release];
    [_lable3 release];
    [_lable4 release];
    [_lable5 release];
    [_lable6 release];
    [_lable7 release];
    [_lable8 release];
    [_lable9 release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubviews];
    }
    return self;
}


- (void)createSubviews
{
    self.backgroundColor = [UIColor whiteColor];
    
    self.imageV1 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 15, [[UIScreen mainScreen] bounds].size.width - 20, 190)];
    self.imageV1.image = [UIImage imageNamed:@"bg_eventlistcell.png"];
    [self.contentView addSubview:self.imageV1];
    [_imageV1 release];
    
    self.lable8 = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, [[UIScreen mainScreen] bounds].size.width - 40, 30)];
    [self.imageV1 addSubview:self.lable8];
    [_lable8 release];
    
    self.imageV2 = [[UIImageView alloc] initWithFrame:CGRectMake(3, 30, self.imageV1.frame.size.width - 6, self.imageV1.frame.size.height - 35)];
    self.imageV2.image = [UIImage imageNamed:@"bg_share_large.png"];
    [self.imageV1 addSubview:self.imageV2];
    [_imageV2 release];
    
    self.imageV3 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 20, 20)];
    self.imageV3.image = [UIImage imageNamed:@"icon_date.png"];
    [self.imageV2 addSubview:self.imageV3];
    [_imageV3 release];
    
    self.lable3 = [[UILabel alloc] initWithFrame:CGRectMake(self.imageV3.frame.origin.x + self.imageV3.frame.size.width, self.imageV3.frame.origin.y, 210, 20)];
//    self.lable3.backgroundColor = [UIColor blackColor];
    [self.imageV2 addSubview:self.lable3];
    [_lable3 release];
    
    self.imageV4 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 40, 20, 20)];
    self.imageV4.image = [UIImage imageNamed:@"icon_spot.png"];
    [self.imageV2 addSubview:self.imageV4];
    [_imageV4 release];
    
    self.lable4 = [[UILabel alloc] initWithFrame:CGRectMake(self.imageV4.frame.origin.x + self.imageV4.frame.size.width, self.imageV4.frame.origin.y, 210, 20)];
    [self.imageV2 addSubview:self.lable4];
    [_lable4 release];
    
    self.imageV5 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 70, 20, 20)];
    self.imageV5.image = [UIImage imageNamed:@"icon_catalog.png"];
    [self.imageV2 addSubview:self.imageV5];
    [_imageV5 release];
    
    self.lable5 = [[UILabel alloc] initWithFrame:CGRectMake(80, self.imageV5.frame.origin.y, 100, 20)];
    [self.imageV2 addSubview:self.lable5];
    [_lable5 release];
    
    self.lable9 = [[UILabel alloc] initWithFrame:CGRectMake(self.imageV5.frame.origin.x + self.imageV5.frame.size.width, self.imageV5.frame.origin.y, 50, 20)];
    self.lable9.text = @"类型:";
    [self.imageV2 addSubview:self.lable9];
    [_lable9 release];
    
    
    self.lable1 = [[UILabel alloc] initWithFrame:CGRectMake(15, self.imageV2.frame.size.height - 30, 60, 10)];
    self.lable1.text = @"感兴趣:";
    [self.imageV2 addSubview:self.lable1];
    [_lable1 release];
    
    self.lable6 = [[UILabel alloc] initWithFrame:CGRectMake(self.lable1.frame.origin.x + self.lable1.frame.size.width + 10, self.lable1.frame.origin.y - 5, 40, 20)];
    [self.imageV2 addSubview:self.lable6];
    [_lable6 release];
    
    self.lable2 = [[UILabel alloc] initWithFrame:CGRectMake(140, self.imageV2.frame.size.height - 30, 60, 10)];
    self.lable2.text = @"参加:";
    [self.imageV2 addSubview:self.lable2];
    [_lable2 release];
    
    self.lable7 = [[UILabel alloc] initWithFrame:CGRectMake(self.lable2.frame.origin.x + self.lable2.frame.size.width, self.lable2.frame.origin.y - 5, 40, 20)];
    [self.imageV2 addSubview:self.lable7];
    [_lable7 release];
    
    self.imageV6 = [[UIImageView alloc] initWithFrame:CGRectMake(250, 5, 95, 145)];
//    self.imageV6.backgroundColor = [UIColor blackColor];
    [self.imageV2 addSubview:self.imageV6];
    [_imageV6 release];

}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
